home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 43
/
Aminet 43 (2001)(GTI - Schatztruhe)[!][Jun 2001].iso
/
Aminet
/
comm
/
tcp
/
rxsocket.lha
/
rxsocket
/
examples
/
ggu.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
2001-03-01
|
786b
|
34 lines
/* get the logged Genesis global user */
l="rmh.library";if ~show("L",l) then;if ~addlib(l,0,-30) then exit
if AddLibrary("rexxsupport.library","rxsocket.library","rxlibnet.library")~=0 then exit
prg = ProgramName("NOEXT")
parm.0.value="";parm.1.value=""
if ~RMH_ReadArgs("LOGIN,PASSWD") then do
call PrintFault(IoErr(),prg)
exit
end
if GenesisGetGlobalUser("user") then do
say "--- Global User ---"
say "Name: " user.NAME
say "Passwd: " user.PASSWD
say "Uid: " user.UID
say "Gid: " user.GID
say "Gecos: " user.GECOS
say "Dir: " user.DIR
say "Shell: " user.SHELL
say "Flags: " user.FLAGS
say "Maxtime:" user.MAXTIME
say "-------------------"
end
else call err "no Global User logged in"
exit
err: procedure expose prg
parse arg msg
say prg":" msg
exit